﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface
{
    /// <summary>
    /// 体尺测定仓储接口
    /// </summary>
    public interface IBodyMeasureModelRepository
    {
        /// <summary>
        /// 获取体尺测定数据
        /// </summary>
        /// <returns></returns>
        Task<IQueryable<Bodymeasuremodel>> Bodymeasure();
        /// <summary>
        /// 获取体尺测定数据列表
        /// </summary>
        /// <param name="earTag"></param>
        /// <param name="variety"></param>
        /// <param name="sheepRescissionSex"></param>
        /// <returns></returns>
        Task<List<Bodymeasuremodel>> BodymeasuremodelList(string earTag, int variety, bool sheepRescissionSex);

        /// <summary>
        /// 删除体尺测定数据
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> Delete( params int[] ids);
        /// <summary>
        /// 添加体尺测定数据
        /// </summary>
        /// <param name="bodymeasuremodel"></param>
        /// <returns></returns>
        Task<int> Add(Bodymeasuremodel bodymeasuremodel);

        /// <summary>
        /// 更新体尺测定数据
        /// </summary>
        /// <param name="bodymeasuremodel"></param>
        /// <returns></returns>
        Task<int> Update(Bodymeasuremodel bodymeasuremodel);





    }





}
